<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<!-- 第一次访问没有cookie,刷新页面因为jsp自动创建session所有存在名为JSESSION的cookie -->
	<%
		Cookie[] cookies = request.getCookies();
		if (cookies != null) {
			for (Cookie cookie : cookies) {
				out.println("cookieName:" + cookie.getName() + ",cookieValue:" + cookie.getValue());

			}
		} else {
			out.print("NO Cookie");
		}
	%>
</body>
</html>